package oop;

import java.lang.reflect.Constructor;

public class Build {
    public String name;
    public int count;
    public Build(String name ,int count)//构造方法  方法名于类名相同
    {
        this.name=name;
        this.count=count;
    }
    public static void main(String[] args) {
        Build t=new Build("dick",900);
        System.out.println(t.name);
        System.out.println(t.count);
    }
}
